package com.wxzz.elearing.course.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.course.dto.CurriculumSectionTopicIsPassDto;
import com.wxzz.elearing.course.entity.CurriculumSectionTopic;
import com.wxzz.elearing.course.entity.WxUserCurriculumSection;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

/**
 * <p>
 * 课程章节测评试题 服务类
 * </p>
 *
 * @author
 * @since 2021-03-10
 */
public interface ICurriculumSectionTopicService extends IService<CurriculumSectionTopic> {

    /**
     * 根据章节id查询测评试题(小程序/后台)
     *
     * @param topicCategory 题目类型 0-章节题目 1-考试题目
     * @param curriculumSectionTopicId
     * @return
     */
    ReturnVO<List<CurriculumSectionTopic>> listCurriculumSectionTopicByCurriculumSectionTopicId(Long curriculumSectionTopicId,Integer topicCategory);

    /**
     * 章节测试完毕时调用(小程序)
     *
     * @return
     */
    ReturnVO<WxUserCurriculumSection> curriculumSectionTopicIsPass(JSONObject jsonObject, CurriculumSectionTopicIsPassDto curriculumSectionTopicIsPassDto);
}
